package com.baizhi.service;

import com.baizhi.dto.PageDTO;
import com.baizhi.entity.Video;
import com.baizhi.po.VideoPo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.List;

public interface VideoService {
    HashMap<String,Object> queryAllPage(@RequestBody PageDTO pageDTO);

    HashMap<String,Object> update(@RequestBody Video video);

    Video queryById(String id);

    HashMap<String,Object> add(@RequestBody Video video);

    void delete(@RequestBody Video video);

    HashMap<String, String> uploadVideoALiY(MultipartFile videoFile);

    List<VideoPo> queryByReleaseTime();
}
